package com.glela.task.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.glela.task.model.TaskOrder;

public interface TaskOrderMapper {
	//    int deleteByPrimaryKey(Long id);

	int insert(TaskOrder record);

	int insertSelective(TaskOrder record);

	TaskOrder selectByPrimaryKey(Long id);

	//    int updateByPrimaryKeySelective(TaskOrder record);
	//
	//    int updateByPrimaryKey(TaskOrder record);

	boolean updateStatusById(@Param("id") long id, @Param("newStatus") int newStatus, @Param("nowStatus") int nowStatus, @Param("memo") String memo);

	boolean updateStatusByObjIdAndType(@Param("oObjId") long oObjId, @Param("taskType") int taskType, @Param("newStatus") int newStatus, @Param("nowStatus") int nowStatus, @Param("memo") String memo);

	List<TaskOrder> selectAll(TaskOrder queryTaskOrder);
}